package com.hxzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.entity.MallCarousel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MallCarouselMapper extends BaseMapper<MallCarousel> {

    /**
     * 通过主键来更新轮播图状态
     * @param deleteIds
     * @param updateBy
     * @return
     */
    int updateIsDeletedByCarouselId(@Param(value = "deleteIds") Long[] deleteIds,@Param(value = "updateBy") String updateBy);
}